<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collections"%>
<%@page import="controller.Utils"%>
<%@page import="java.net.InetAddress"%>
<%
String title = "Best Review , Analysis and evaluation of website information";
String description = Utils.ValidDomain()+" - best review and free analytic for webmasters that gathers detailed information on your website : traffic details, Technology language, whois, ranking info, Website backlinks,website IP, DNS record, optimization, network tools, seo tools...don’t install and very easy, review to directly use our services for your website";
String keywords = Utils.ValidDomain()+",Best review websites,  Server information, review website analysis, website traffic details, review website backlinks website IP, review website ranking info";

Cache cache=null;
try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<String> siteview = null;
if(cache.containsKey("view"))
{
	siteview = (ArrayList<String>) cache.get("view");
}
ArrayList<String> whoisview = null;
if(cache.containsKey("whoisview"))
{
	whoisview = (ArrayList<String>) cache.get("whoisview");
}
ArrayList<String> ipview = null;
if(cache.containsKey("ipview"))
{
	ipview = (ArrayList<String>) cache.get("ipview");
}
ArrayList<String> siteupdate = null;
if(cache.containsKey("updates"))
{
	siteupdate = (ArrayList<String>) cache.get("updates");
}
%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="link" value="home"/>
</jsp:include>


<div id="mainContent">
            	<div class="recentSite newSite simpleBox clearafter">
                    <h3 class="title">New site</h3>
                    <ul class="recentSiteListing clearafter left">
                    	<%
                    	if(siteupdate!=null)
                    	{
                    		for(int i=0;i<siteupdate.size();i++)
                    		{
                    	%>
                       	 		<li><a href="/domain/<%=siteupdate.get(i) %>"><%=siteupdate.get(i) %></a></li>
                        <%
                    		}
                    	}
                        %>
                    </ul>
                    <div class="right"><%@ include file='/adv/left_detail.jsp'%></div>
                </div>
            	<div class="adv-1 content-center">
                	<%@ include file='/adv/banner.jsp'%>
                </div>
                <section class="siteListingArea clearafter">
                	<div>
                    	<div>
                            <div class="recentSite simpleBox">
                                <div class="simpleBox_inner">
                                    <h3 class="title">Recent site view</h3>
                                    <ul class="recentSiteListing clearafter">
                                    	<%
											if(siteview != null)
											{
												for(int i=0;i<siteview.size();i++)
												{
										%>
                                        		<li><a href="/domain/<%=siteview.get(i)%>"><%=siteview.get(i)%></a></li>
                                        <%
												}
											}
                                        %>                                  
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div>
                    	<div>
                            <div class="recentSite simpleBox">
                                <div class="simpleBox_inner">
                                    <h3 class="title">Recent whois view </h3>
                                    <ul class="recentSiteListing clearafter">
                                    	<%
											if(whoisview != null)
											{
												for(int i=0;i<whoisview.size();i++)
												{
										%>
                                        		<li><a href="/whois/<%=whoisview.get(i)%>"><%=whoisview.get(i)%></a></li>
                                        <%
												}
											}
                                        %>                                
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div>
                    	<div>
                            <div class="recentSite simpleBox">
                                <div class="simpleBox_inner">
                                    <h3 class="title">Recent ip view</h3>
                                    <ul class="recentSiteListing clearafter">
                                    	<%
											if(ipview != null)
											{
												for(int i=0;i<ipview.size();i++)
												{
										%>
                                       			<li><a href="/ip/<%=ipview.get(i)%>"><%=ipview.get(i)%></a></li>
                                        <%
												}
											}
                                        %>                                   
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
            </div>

<%@ include file='/layout/footer.jsp'%>